QT       += core gui multimediawidgets testlib

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++20

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += $$PWD/ffmpeglib/include
INCLUDEPATH += $$PWD/sdl2/include
LIBS += -L$$PWD/ffmpeglib/lib -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc -lswresample -lswscale
LIBS += -L$$PWD/sdl2/lib/x64 -lSDL2

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    test.cpp \
    videoslider.cpp \
    videowidget.cpp \
    vpclock.cpp \
    vpdecodeaudiothread.cpp \
    vpdecodevideothread.cpp \
    vpdemuxthread.cpp \
    vpentrance.cpp \
    vpframe.cpp \
    vpframequeue.cpp \
    vppacket.cpp \
    vppacketqueue.cpp

HEADERS += \
    mainwindow.h \
    test.h \
    videoslider.h \
    videowidget.h \
    vpclock.h \
    vpdecodeaudiothread.h \
    vpdecodevideothread.h \
    vpdemuxthread.h \
    vpentrance.h \
    vpframe.h \
    vpframequeue.h \
    vppacket.h \
    vppacketqueue.h

FORMS += \
    mainwindow.ui

TRANSLATIONS += \
    videoplayer_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    icon.qrc

DISTFILES +=
